* {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: #333;
}
//后面的背景
.bgi {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
   background-image: linear-gradient(to right ,#be93c5, #7bc6cc);

}
//字体大小
.f-s() {
    font-size: 14px;
    font-weight: 100;
}
//登录注册框
.enter-login() {
    margin: auto;   
    width: 48vw;
    height: 52vh;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.877);
    animation-name: show;
    animation-duration: 2s;
    
}
/* 动画代码 */
.animate() {
  @keyframes show {
    0%   { opacity: 0;}
    100% { opacity: 1;}
  }
}
//内部样式
.content() {   
   h1 {
       margin: 7vh 0 0 0;
       margin-left: 9vw;
       height: 10vh;
       font-size: 36px;
       font-weight: 100;
   }
   .uname,.psw {
       margin-top: 10px;
       padding: 0 1vw;
       width: 23vw;
       height: 5.5vh;
       font-size: 17px;
   }
   .enter-head {
       display: inline-block;
       width: 4vw;
        padding-left: 4vw;
        padding-right: 1vw;
   }
   .checkbox {
       margin-left: 1vw;
   }
   .enter-text {
       display: inline-block;
       margin-left: 2vh;
   }
   .enter-btn,.login-btn{
       display: inline-block;
       margin-top: 1vh;
       margin-left: 9vw;
       border: solid 1px #333;
        border-radius: 5px;
       width: 9vw;
       height: 6vh;
       text-align: center;
       line-height: 6vh;
       cursor:pointer; 
       transition: .3s;
       &:hover {
           background-color: rgba(204, 204, 204, 0.719);
       }
   }
    
}
//登录
.enter {
    .enter-login();
    .animate();
    .content();
    .f-s();
    
}
//注册
.login {
    position: relative;
    .enter-login();
    .animate();
    .content();
    .f-s();
    .login-btn {
        margin-top: 3vh;
    }
    .return {
        position: absolute;
        top: 10px;
        left: 20px;
        padding: 0 10px;
        border: 1px solid transparent;
        font-size: 26px;
       cursor:pointer; 
        transition: .3s;
        &:hover {
        border: 1px solid transparent;
        background-color: #ccc;
        }
    }
    .ok {
        display: none;
        font-weight: 550;
        color: rgb(59, 204, 59);
    }
}
@media screen and (max-width: 425px) {
    .enter,.login {
        width: 80vw;
        height: 56vh;
        font-size: 12px;
        .form {
            height: 22vh;
        }
        h1 {
            margin-left: 20vw;
        }
        .enter-head {
          width: 15vw;
        }
       .uname, .psw {
           margin-top: 0;
        width: 51vw;
        font-size: 14px;
        }
         .enter-text {
             display: block;
             margin-top: 1vh;
             margin-left: 19vw;
         }
        .enter-btn, .login-btn {
            margin-top: 0;
            margin-left: 20vw;
            width: 19vw;
        }
    }
    .login {
        .return {
            left: 2vw;
        } 
    }
}
 
    




  
